import service from '@/utils/request.js';

// 添加用户的接口post
export function userAddApi(data) {
    return service({
        url: '/users/add',
        method: 'post',
        data
    })
}
// list数据的接口get
export function userListApi(data) {
    return service({
        url: '/users/list',
        method: 'get',
        params: data
    })
}
// 删除数据/api/users/dele
export function userDeleApi(data) {
    return service({
        url: '/users/dele',
        method: 'get',
        params: data
    })
}

// 修改用户的接口post
export function userEditApi(data) {
    return service({
        url: '/users/edit',
        method: 'post',
        data
    })
}
// 登录
export function userLoginApi(data) {
    return service({
        url: '/users/login',
        method: 'post',
        data
    })
}